<?php
namespace app\home\controller;

use app\common\component\user\UserService;

class ControllerBase extends \think\Controller {
	public function checkLogin() {
		$resultIsLogin = (new UserService()) -> isLogin();
		if($resultIsLogin['code'] !== 0) {
			echo '<meta charset="utf-8"><script>alert("未登录，请先登陆后操作!");window.location.href="/";</script>';exit;
		}
	}
}
?>